import request from '@/utils/request'

// 根据字典编码获取字典详情列表
export function getDictDetailListByPcode(id) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/sysDict/getDictDetailListByPcode?dictCode=' + id,
    method: 'get'
  })
}

export function selectParamSetList() {
  return request({
    url: window.CONFIG.workOrderRestIp + '/sysDict/selectParamSetList',
    method: 'get'
  })
}

export function updateSysDict(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/sysDict/updateSysDict',
    method: 'post',
    data: params
  })
}

export function updateNoSysDictParams(params) {
  return request({
    url: window.CONFIG.workOrderRestIp + '/sysDict/updateNoSysDictParams',
    method: 'post',
    data: params
  })
}
